package com.jevons.muffin.bind.adapter.recycleviewadatper;


import androidx.annotation.NonNull;

/**
 * Copyright 2020 JxGIS
 *
 * @file OnItemBind
 * @auth linaisheng
 * Created on 2023/12/7.
 * Description：
 *  Callback for setting up a {@link ItemBinding} for an item in the collection.
 */
public interface OnItemBind<T> {
    /**
     * Called on each item in the collection, allowing you to modify the given {@link ItemBinding}.
     * Note that you should not do complex processing in this method as it's called many times.
     */
    void onItemBind(@NonNull ItemBinding itemBinding, int position, T item);
}